# 努力学习
# 比肩漆时祺和周期许
# import unittest
# from test_case import TestLogin
# # suite=unittest.TestSuite()
# # suite.addTest(TestLogin('test_login_ok'))
# suite=unittest.TestSuite()
# suite.addTest(unittest.makeSuite(TestLogin))
# runner=unittest.TextTestRunner()
# runner.run(suite)
#
# import unittest
# # suite=unittest.TestLoader().discover('.','test_case.py')
# suite=unittest.TestLoader().discover('.','test_case')
# runner=unittest.TextTestRunner()
# runner.run(suite)

# import unittest
# from test_case import TestLogin
# suite=unittest.TestLoader().discover('.','test_case.py')
# runner=unittest.TextTestRunner()
# runner.run(suite)

# import unittest
# from test_case import TestLogin
# suite=unittest.TestSuite()
# suite.addTest(unittest.makeSuite(TestLogin))
# runner=unittest.TextTestRunner()
# runner.run(suite)



# import unittest
# from test_case import TestAdd
# suite=unittest.TestSuite()
# suite.addTest(unittest.makeSuite(TestAdd))
# # suite.addTest(TestAdd('test_add'))
# runner=unittest.TextTestRunner()
# runner.run(suite)
# import unittest
# from htmltestreport import HTMLTestReport
# from test_case import TestAdd
# from direct import BASE_DIR
# suite=unittest.TestSuite()
# suite.addTest(unittest.makeSuite(TestAdd))
# runner=HTMLTestReport(BASE_DIR+'/report/test_add_report.html','加法执行报告',)
# runner.run(suite)


# import unittest
# # from test_case import ShangchengLogin
# # from HTM
# from  ihrm_login_case import SCLoginTest
# suite=unittest.TestSuite()
# suite.addTest(unittest.makeSuite((SCLoginTest)))
# runner=unittest.TextTestRunner()
# runner.run(suite)
import logging
import unittest
from common.log import init_log_config
from config import BASE_DIR
from htmltestreport import HTMLTestReport
from script.test_query_case import TestQuery
from script.ihrm_login_case import SCLoginTest
init_log_config(BASE_DIR+'/common/a.log')
# from script.get_userlist_case import TestUserList
# from script.ihrm登录普通方法实现 import LoginTest
suite=unittest.TestSuite()
suite.addTest(unittest.makeSuite(SCLoginTest))
# suite=unittest.TestLoader().discover('script\\','test_query_case.py')
# logging.info('测试套件实例，创建成功')
runner=HTMLTestReport('./report/login_report.html','查询测试报告')
# runner.run(suite)
# runner=HTMLTestReport('test_query_report.html','查询测试报告')林
runner.run(suite)

















